package com.xxpt.common;

import com.xxpt.common.utils.amqp.config.RabbitConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Import;

@EnableEurekaClient
@EnableFeignClients(basePackages = {"com.xxpt.user"})
@EnableDiscoveryClient
@EnableHystrix
@Import(RabbitConfig.class) // 导入 mq 配置
public class XxptCommonApplication extends BaseApplication {
    public static void main(String[] args) {
        SpringApplication.run(XxptCommonApplication.class);
    }
}
